@layout("/common/container.html", {"title" : "详情信息"}){
<form class="e-form">
    <div class="card">
        <#card:head title="详情信息" icon="la la-file-text-o"/>
        <div class="card-body">
            <input type="hidden" name="id" value="${object.id}">
            <input type="hidden" name="templateId" value="${object.templateId}">
            <div class="row">
                @var index = 1;
                @for(detail in details){
                <div class="col-md-6 col-12">
                    <div class="form-group row">
                        <label class="col-4 col-form-label" for="field${index}">
                            @var required = '';
                            @if(ImportConst.REQUIRED == detail.required){
                            @required = 'required';
                            <span class="required">*</span>
                            @}
                            ${detail.title}：
                        </label>
                        <div class="col-8">
                            @if(strUtil.isNotBlank(detail.replaceTable)){
                                @if(ImportConst.SYS_DICT == detail.replaceTable){
                                    <select class="form-control e-bootstrap-select select-picker" data-value="${object['field' + index]}"
                                            id="field${index}" name="field${index}" data-dict-type="${detail.replaceTableDictType}" ${required}>
                                    </select>
                                @} else {
                                    <input type="text" class="form-control " id="field${index}" name="field${index}"
                                           value="${object['field' + index]}" ${required}>
                                @}
                            @} else {
                                @if(detail.isDate){
                                    <input type="text" class="form-control date-picker" id="field${index}" name="field${index}"
                                       data-format="yyyy-mm-dd hh:ii:ss" value="${object['field' + index]}" ${required}>
                                @}else if(detail.isNumber){
                                    <input type="number" class="form-control " id="field${index}" name="field${index}"
                                       value="${object['field' + index]}" ${required}>
                                @}else{
                                    <input type="text" class="form-control " id="field${index}" name="field${index}"
                                           value="${object['field' + index]}" ${required}>
                                @}
                            @}
                        </div>
                    </div>
                </div>
                @index++;
                @}
                <div class="col-12">
                    <div class="form-group e-form-group row">
                        <label class="col-md-2 col-4 col-form-label">
                            校验结果：
                        </label>
                        <div class="col-8">
                            @if(ImportConst.VERIFICATION_STATUS_SUCCESS == object.verificationStatus){
                            <span id="verification-results" class="form-control form-control-static e-font-success">验证通过</span>
                            @} else {
                            <span id="verification-results" class="form-control form-control-static e-font-danger">${object.verificationResults}</span>
                            @}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="card-foot">
            <div class="e-form-actions text-center">
                <button type="button" class="btn btn-success btn-save" onclick="ETool.saveData(this, null, null, null, temporaryInput.saveCallback)">
                    <i class="la la-save"></i> 保存
                </button>
            </div>
        </div>
    </div>
</form>
<!--begin::页面脚本 -->
<#script src="static/modular/sys/import/excel/temporary/input.js" />
<!--end::页面脚本 -->
@}